import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useState = defineStore('state', () => {

  const demo = ref("test")


  return {
    demo,
  }

}, {
  persist: {
    key: "pinia_state",
    paths: [
      // ! 需要永久缓存的 key
      'demo',
    ]
  }
})